package com.example.day22.ex06;

import org.w3c.dom.ls.LSOutput;

public class PrintableDemo {
    public static void main(String[] args) {
        usePrintable(s-> System.out.println(s));
        usePrintable(System.out::println);
    }
    private static void usePrintable(Printable p) {
        p.printString("Hello World");
    }
}
